//
// Decompiled by Jadx - 328ms
//
package gc;

import androidx.activity.b;
import gc.z;
import java.io.File;
import java.util.HashMap;
import me.plusne.Adapter.Login.h;
import r.g;

public final class am implements z.c {
    public final File a;

    public am(File file) {
        this.a = file;
    }

    public final void b(String str) {
        try {
            HashMap hashMap = new HashMap();
            int parseInt = Integer.parseInt(String.valueOf(g.k(this.a.getPath()) / 1000));
            hashMap.put("voiceUrl", str);
            hashMap.put("voiceSeconds", Integer.valueOf(parseInt));
            ac acVar = new ac();
            acVar.de("https://api-user.soulapp.cn/user/voice/commit?pageId=HomePage_MyVoiceCard", hashMap, "JSON");
            acVar.dg(new h(25));
        } catch (NumberFormatException unused) {
            b.u("m4a语音时长填写错误");
        }
    }

    public final void c(String str) {
        b.u(str);
    }
}
